<?php
$page_title="Send Email to Members ";
include("includes/header.php");

?>

<div>

<form action="send_email_pro.php" method="post" enctype="multipart/form-data" >

<table cellpadding="5" cellspacing="4">
<tr>
<td valign="top" width="100"> To Member List</td>
<td align="left">
<div>

<?

$selected_members=$_GET["sel"];
$curTime=getIndianDateTime();

$member_list = qry_data("select distinct registrant_id,full_name,email_id,reg_password,center_incharge_name  from bkitc_profiles where rec_status=1 and registrant_id in ($selected_members) and email_id!=''");


foreach($member_list as $j=>$member){ ?>
<div style="float:left;width:250px;padding:2px;margin:2px;overflow:hidden;">
<input type="checkbox" name="member_email[]"  value="<?=$member["email_id"]?>" checked id="member<?=$j?>" /> <label for="m<?=$j?>"><?=$member["full_name"]."-".$member["email_id"]?></label> 
</div>



<? } ?>


</div>

</td>
</tr>
<tr>
<td colspan="2">
Subject
<br/>

 <input type="text" name="mail_subject"  class="txtbox" size="100"/>

</td>
</tr>
<tr>
<td colspan="2">
Attach File :
<br/>

 <input type="file" name="attach_file"  class="txtbox" size="50"/>

</td>
</tr>


<tr>
<td colspan="2">
Body
<br/>

 <textarea class="txtarea"  id="mail_content" rows="14" cols="90" name="mail_content" style="width:800px;height:270px;"></textarea> 

</td>
</tr>

<tr>
<td colspan="2">

<div style="float:right">
<input type="submit" Value="Send" class="button" />

</div>


</td>

</tr>
</table>

</form>

<link rel="stylesheet" href="includes/wysiwyg.css" type="text/css">
<script type="text/javascript" src="includes/scripts/wysiwyg.js"></script>
<script type="text/javascript" src="includes/scripts/wysiwyg-settings.js"></script>
		<!-- 
			Attach the editor on the textareas
		-->
		<script type="text/javascript">
			
			// Use it to attach the editor directly to a defined textarea
			WYSIWYG.attach('mail_content'); // default setup
			
		</script>

</div>


<?php
include("includes/footer.php");
?>